package io;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class WriteStringDemo1 {
    public static void main(String[] args) throws IOException {
        File file = new File("test6.txt");
        FileOutputStream fos = new FileOutputStream(file);
        fos.write("赵总真笨".getBytes(StandardCharsets.UTF_8));
        System.out.println("写出完毕!");
        fos.close();
    }
}
